package com.jiyinit.web.core.activiti.service;

import com.jiyinit.web.core.activiti.dao.TabTripOrderDao;
import com.jiyinit.web.core.activiti.entity.TabTripOrderEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("core.tabTripOrderServiceImpl")
public class TabTripOrderServiceImpl {
	
	@Resource(name = "core.tabTripOrderDao")
	private TabTripOrderDao tabTripOrderDao;

	/**
	 * 添加
	 * @param entity
	 * @return
	 */
	public int Insert(TabTripOrderEntity entity){
		return tabTripOrderDao.insert(entity);
	}

	/**
	 * 同步订单状态
	 * @param entity
	 * @return
	 */
	public int updateByOrderNo(TabTripOrderEntity entity){
		return tabTripOrderDao.updateByOrderNo(entity);
	}
	
}
